package com.tuanbiao.utils;

import com.hzjq.lib.BlastKool;
import com.hzjq.lib.config.param.BlastLoader;

/**
 * @author abiao
 * @since 2022/4/22 11:21
 */
public final class DetonatorUtils {
    public static State checkUID(String uid) {
        return null;
    }

    public static boolean is214TubeUid(String uid){
       return BlastLoader.Companion.getDeviceBuyMillCallback()
                .isCorrectCapByUidRule(uid);
    }


    public static boolean is214DisplayUid(String uid){
        return BlastKool.Companion.loader().isDisplayUid(uid);
    }

    public static class State {
        private String value;
        private boolean success;

        public State(String value, boolean success) {
            this.value = value;
            this.success = success;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public boolean isSuccess() {
            return success;
        }

        public void setSuccess(boolean success) {
            this.success = success;
        }
    }
}
